/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author jose
 */
@Entity
@Table(name = "ulaboral")
@NamedQueries({
    @NamedQuery(name = "Ulaboral.findAll", query = "SELECT u FROM Ulaboral u"),
    @NamedQuery(name = "Ulaboral.findById", query = "SELECT u FROM Ulaboral u WHERE u.id = :id"),
    @NamedQuery(name = "Ulaboral.findByNocontrol", query = "SELECT u FROM Ulaboral u WHERE u.nocontrol = :nocontrol"),
    @NamedQuery(name = "Ulaboral.findByNumeroProfe", query = "SELECT u FROM Ulaboral u WHERE u.numeroProfe = :numeroProfe"),
    @NamedQuery(name = "Ulaboral.findByEmpresa1", query = "SELECT u FROM Ulaboral u WHERE u.empresa1 = :empresa1"),
    @NamedQuery(name = "Ulaboral.findBySuperior1", query = "SELECT u FROM Ulaboral u WHERE u.superior1 = :superior1"),
    @NamedQuery(name = "Ulaboral.findByIntermedio1", query = "SELECT u FROM Ulaboral u WHERE u.intermedio1 = :intermedio1"),
    @NamedQuery(name = "Ulaboral.findBySuper1", query = "SELECT u FROM Ulaboral u WHERE u.super1 = :super1"),
    @NamedQuery(name = "Ulaboral.findByTecnico1", query = "SELECT u FROM Ulaboral u WHERE u.tecnico1 = :tecnico1"),
    @NamedQuery(name = "Ulaboral.findByOtros1", query = "SELECT u FROM Ulaboral u WHERE u.otros1 = :otros1"),
    @NamedQuery(name = "Ulaboral.findByEmpresa2", query = "SELECT u FROM Ulaboral u WHERE u.empresa2 = :empresa2"),
    @NamedQuery(name = "Ulaboral.findBySuperior2", query = "SELECT u FROM Ulaboral u WHERE u.superior2 = :superior2"),
    @NamedQuery(name = "Ulaboral.findByIntermedio2", query = "SELECT u FROM Ulaboral u WHERE u.intermedio2 = :intermedio2"),
    @NamedQuery(name = "Ulaboral.findBySuper2", query = "SELECT u FROM Ulaboral u WHERE u.super2 = :super2"),
    @NamedQuery(name = "Ulaboral.findByTecnico2", query = "SELECT u FROM Ulaboral u WHERE u.tecnico2 = :tecnico2"),
    @NamedQuery(name = "Ulaboral.findByOtros2", query = "SELECT u FROM Ulaboral u WHERE u.otros2 = :otros2"),
    @NamedQuery(name = "Ulaboral.findByCongruencia", query = "SELECT u FROM Ulaboral u WHERE u.congruencia = :congruencia"),
    @NamedQuery(name = "Ulaboral.findByRequisitos", query = "SELECT u FROM Ulaboral u WHERE u.requisitos = :requisitos")})
public class Ulaboral implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "nocontrol")
    private int nocontrol;
    @Basic(optional = false)
    @Column(name = "numero_profe")
    private String numeroProfe;
    @Basic(optional = false)
    @Column(name = "empresa1")
    private String empresa1;
    @Basic(optional = false)
    @Column(name = "superior1")
    private int superior1;
    @Basic(optional = false)
    @Column(name = "intermedio1")
    private int intermedio1;
    @Basic(optional = false)
    @Column(name = "super1")
    private int super1;
    @Basic(optional = false)
    @Column(name = "tecnico1")
    private int tecnico1;
    @Basic(optional = false)
    @Column(name = "otros1")
    private int otros1;
    @Column(name = "empresa2")
    private String empresa2;
    @Column(name = "superior2")
    private Integer superior2;
    @Column(name = "intermedio2")
    private Integer intermedio2;
    @Column(name = "super2")
    private Integer super2;
    @Column(name = "tecnico2")
    private Integer tecnico2;
    @Column(name = "otros2")
    private Integer otros2;
    @Basic(optional = false)
    @Column(name = "congruencia")
    private String congruencia;
    @Basic(optional = false)
    @Column(name = "requisitos")
    private String requisitos;

    public Ulaboral() {
    }

    public Ulaboral(Integer id) {
        this.id = id;
    }

    public Ulaboral(Integer id, int nocontrol, String numeroProfe, String empresa1, int superior1, int intermedio1, int super1, int tecnico1, int otros1, String congruencia, String requisitos) {
        this.id = id;
        this.nocontrol = nocontrol;
        this.numeroProfe = numeroProfe;
        this.empresa1 = empresa1;
        this.superior1 = superior1;
        this.intermedio1 = intermedio1;
        this.super1 = super1;
        this.tecnico1 = tecnico1;
        this.otros1 = otros1;
        this.congruencia = congruencia;
        this.requisitos = requisitos;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getNocontrol() {
        return nocontrol;
    }

    public void setNocontrol(int nocontrol) {
        this.nocontrol = nocontrol;
    }

    public String getNumeroProfe() {
        return numeroProfe;
    }

    public void setNumeroProfe(String numeroProfe) {
        this.numeroProfe = numeroProfe;
    }

    public String getEmpresa1() {
        return empresa1;
    }

    public void setEmpresa1(String empresa1) {
        this.empresa1 = empresa1;
    }

    public int getSuperior1() {
        return superior1;
    }

    public void setSuperior1(int superior1) {
        this.superior1 = superior1;
    }

    public int getIntermedio1() {
        return intermedio1;
    }

    public void setIntermedio1(int intermedio1) {
        this.intermedio1 = intermedio1;
    }

    public int getSuper1() {
        return super1;
    }

    public void setSuper1(int super1) {
        this.super1 = super1;
    }

    public int getTecnico1() {
        return tecnico1;
    }

    public void setTecnico1(int tecnico1) {
        this.tecnico1 = tecnico1;
    }

    public int getOtros1() {
        return otros1;
    }

    public void setOtros1(int otros1) {
        this.otros1 = otros1;
    }

    public String getEmpresa2() {
        return empresa2;
    }

    public void setEmpresa2(String empresa2) {
        this.empresa2 = empresa2;
    }

    public Integer getSuperior2() {
        return superior2;
    }

    public void setSuperior2(Integer superior2) {
        this.superior2 = superior2;
    }

    public Integer getIntermedio2() {
        return intermedio2;
    }

    public void setIntermedio2(Integer intermedio2) {
        this.intermedio2 = intermedio2;
    }

    public Integer getSuper2() {
        return super2;
    }

    public void setSuper2(Integer super2) {
        this.super2 = super2;
    }

    public Integer getTecnico2() {
        return tecnico2;
    }

    public void setTecnico2(Integer tecnico2) {
        this.tecnico2 = tecnico2;
    }

    public Integer getOtros2() {
        return otros2;
    }

    public void setOtros2(Integer otros2) {
        this.otros2 = otros2;
    }

    public String getCongruencia() {
        return congruencia;
    }

    public void setCongruencia(String congruencia) {
        this.congruencia = congruencia;
    }

    public String getRequisitos() {
        return requisitos;
    }

    public void setRequisitos(String requisitos) {
        this.requisitos = requisitos;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Ulaboral)) {
            return false;
        }
        Ulaboral other = (Ulaboral) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Model.Ulaboral[id=" + id + "]";
    }

}
